<template>
	<div class="hello">
		<div>
			<button @click="testPage">testPage</button>
		</div>
		<p>{{ msg }}</p>
	</div>
</template>

<script>
	export default {
		name: 'TestPage',
		data() {
			return {
				queryParams: {
					pageNum: 1,
					pageSize: 5,
				},
				msg: undefined
			}
		},
		methods: {
			testPage() {
				this.rq.get('/page?pageNum='+this.queryParams.pageNum+'&pageSize='+this.queryParams.pageSize).then(res => {
						this.msg = res.data
					})
					.catch(err => {
						alert('请求失败' + err)
					})
			}
		}
	}
</script>


<style scoped>
</style>
